package com.aboo.service;

import com.aboo.po.User;
import com.aboo.vo.ReturnVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class IUserServiceFallback implements IUserService {

    @Override
    public ReturnVO<User> add(User user) {
        log.warn("Feign网络不好，熔断...");
        ReturnVO<User> rv = new ReturnVO<>();
        rv.setCode("001");
        rv.setMsg("网络不好");
        return rv;
    }

    @Override
    public ReturnVO<User> edit(User user) {
        log.warn("Feign网络不好，熔断...");
        ReturnVO<User> rv = new ReturnVO<>();
        rv.setCode("001");
        rv.setMsg("网络不好");
        return rv;
    }

}
